[Domains] Order a domain
curl --request POST \
--url https://api.onetsolutions.net/v1/organizations/{organization_id}/projects/{project_id}/domains/order \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"domain_name": "<string>",
"epp_code": "<string>",
"create_dns_zone": true
}
'import requests
url = "https://api.onetsolutions.net/v1/organizations/{organization_id}/projects/{project_id}/domains/order"
payload = {
"domain_name": "<string>",
"epp_code": "<string>",
"create_dns_zone": True
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({domain_name: '<string>', epp_code: '<string>', create_dns_zone: true})
};
fetch('https://api.onetsolutions.net/v1/organizations/{organization_id}/projects/{project_id}/domains/order', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.onetsolutions.net/v1/organizations/{organization_id}/projects/{project_id}/domains/order",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'domain_name' => '<string>',
'epp_code' => '<string>',
'create_dns_zone' => true
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.onetsolutions.net/v1/organizations/{organization_id}/projects/{project_id}/domains/order"
payload := strings.NewReader("{\n \"domain_name\": \"<string>\",\n \"epp_code\": \"<string>\",\n \"create_dns_zone\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.onetsolutions.net/v1/organizations/{organization_id}/projects/{project_id}/domains/order")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"domain_name\": \"<string>\",\n \"epp_code\": \"<string>\",\n \"create_dns_zone\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.onetsolutions.net/v1/organizations/{organization_id}/projects/{project_id}/domains/order")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"domain_name\": \"<string>\",\n \"epp_code\": \"<string>\",\n \"create_dns_zone\": true\n}"
response = http.request(request)
puts response.read_body{
"order_id": 123,
"order_number": "<string>",
"invoice_id": 123,
"local_order_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"total": 123,
"amount_due": 123,
"credit_applied": 123,
"status": "<string>",
"invoice_payment_url": "<string>",
"domain_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"domain_status": "<string>"
}{
"error": "<string>",
"domain_name": "<string>",
"suggestions": [
{
"domain_name": "<string>",
"tld": "<string>",
"available": true,
"price": "<string>"
}
],
"available": false
}Domains
[Domains] Order a domain
Create an order for a domain. Supports three order types:
- register: Register a new domain (checks availability first)
- transfer: Transfer an existing domain from another registrar (EPP code required)
- external: Use an external domain you already own (no WHMCS order, DNS only)
POST
/
v1
/
organizations
/
{organization_id}
/
projects
/
{project_id}
/
domains
/
order
[Domains] Order a domain
curl --request POST \
--url https://api.onetsolutions.net/v1/organizations/{organization_id}/projects/{project_id}/domains/order \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"domain_name": "<string>",
"epp_code": "<string>",
"create_dns_zone": true
}
'import requests
url = "https://api.onetsolutions.net/v1/organizations/{organization_id}/projects/{project_id}/domains/order"
payload = {
"domain_name": "<string>",
"epp_code": "<string>",
"create_dns_zone": True
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({domain_name: '<string>', epp_code: '<string>', create_dns_zone: true})
};
fetch('https://api.onetsolutions.net/v1/organizations/{organization_id}/projects/{project_id}/domains/order', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.onetsolutions.net/v1/organizations/{organization_id}/projects/{project_id}/domains/order",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'domain_name' => '<string>',
'epp_code' => '<string>',
'create_dns_zone' => true
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.onetsolutions.net/v1/organizations/{organization_id}/projects/{project_id}/domains/order"
payload := strings.NewReader("{\n \"domain_name\": \"<string>\",\n \"epp_code\": \"<string>\",\n \"create_dns_zone\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.onetsolutions.net/v1/organizations/{organization_id}/projects/{project_id}/domains/order")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"domain_name\": \"<string>\",\n \"epp_code\": \"<string>\",\n \"create_dns_zone\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.onetsolutions.net/v1/organizations/{organization_id}/projects/{project_id}/domains/order")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"domain_name\": \"<string>\",\n \"epp_code\": \"<string>\",\n \"create_dns_zone\": true\n}"
response = http.request(request)
puts response.read_body{
"order_id": 123,
"order_number": "<string>",
"invoice_id": 123,
"local_order_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"total": 123,
"amount_due": 123,
"credit_applied": 123,
"status": "<string>",
"invoice_payment_url": "<string>",
"domain_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"domain_status": "<string>"
}{
"error": "<string>",
"domain_name": "<string>",
"suggestions": [
{
"domain_name": "<string>",
"tld": "<string>",
"available": true,
"price": "<string>"
}
],
"available": false
}Authorizations
Use Authorization: Bearer <token> header. Token can be a JWT token or an API key (format: sk-onetsolutions-...).
Body
application/json
Response
Domain order created successfully
⌘I

